package com.aman.ui.swipeback;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.aman.transformer.sample.R;

/**
 * http://blog.csdn.net/hanhailong726188/article/details/46453627<br>
 * https://github.com/hanhailong/SlidingMenuSwipeBackDemo<br>
 * Android-通过SlidingMenu高仿微信6.2最新版手势滑动返回(二)<br>
 */
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_swipeback);
    }

    public void goSwipeBack(View v) {
        Intent intent = new Intent(this, NextActivity.class);
        intent.putExtra("index", 1);
        startActivity(intent);
    }
}
